home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / mac / source / tifreadr.sit / Tiff Window DEMO / adjust TE rect.c < prev    next >
C/C++ Source or Header  |  1990-01-30  |  635b  |  18 lines

  1. #include "my color.h"
  2.  
  3. adjust_TE_rect(a_window)        /* This routine is called from the "do mouse" routine,
  4.                                     Here I will re-size the TE destination and view 
  5.                                     rectangles after the user has "grown" the window */
  6. CWindowPtr    a_window;
  7. {
  8. register TEHandle    the_text;
  9.  
  10.     the_text = (TEHandle)((CWindowPeek)a_window)->refCon;
  11.     (**the_text).destRect = a_window->portRect;
  12.     (**the_text).destRect.right = (**the_text).destRect.right - BAR_WIDTH;
  13.     (**the_text).destRect.bottom = (**the_text).destRect.bottom - BAR_WIDTH;
  14.     InsetRect(&(**the_text).destRect, 4, 0);
  15.     (**the_text).viewRect = (**the_text).destRect;
  16.     TECalText(the_text);
  17. }
  18.